Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Release: 3.1.0 #2938

Merged
merged 17 commits into from
Jul 29, 2020
Merged

Release: 3.1.0 #2938

merged 17 commits into from
Jul 29, 2020

Conversation

Aljullu
Copy link
Contributor

@Aljullu Aljullu commented Jul 29, 2020

This is the release pull request for WooCommerce Blocks 3.1.

Communication

This release fixes an issue with the Product summary inner block in the All Products block that was not being rendered correctly.

  • Fix missing permissions_callback arg in StoreApi route definitions #2926
  • Fix 'Product Summary' in All Products block is not pulling in the short description of the product #2913
  • dev: Add query filter when searching for a table #2886 👏 @pkelbert

Prepared Updates

The following documentation, blog posts, and changelog updates are prepared for the release:

Release announcement: in process

Developer Notes - N/A

Relevant developer documentation: N/A

  • The release includes a changelog entry in the readme.txt?

Quality

  • Changes in this release are covered by Automated Tests.

    • Unit tests
    • E2E tests
    • for each supported WordPress and WooCommerce core versions.
  • This release has been tested on the following platforms:

    • mobile
    • desktop
  • This release affects public facing REST APIs.

    • It conforms to REST API versioning policy.
  • This release impacts other extensions or backward compatibility.

    • The release changes the signature of public methods or functions
      • This is documented (see: )
    • The release affects filters or action hooks.
      • This is documented (see: )
  • Link to testing instructions for this release: Testing Instructions

  • The release has a negative performance impact on sites.

    • There are new assets (JavaScript or CSS bundles)
    • There is an increase to the size of JavaScript or CSS bundles)
    • Other negative performance impacts (if yes, include list below)
  • The release has positive performance impact on sites. If checked, please document these improvements here.

Notes on performance

New CSS webpack config

This release generates CSS files in a new way (see #2818 for more info). That resulted in a bigger CSS file for legacy builds. Non-legacy builds aren't affected (in fact, they got a small size decrease).

nerrad and others added 7 commits July 29, 2020 10:47
…2926)

* make sure permission_callback is set correctly for all public routes

* add permission_callback definition to all routes
… so it doesn't jump on mouseover (#2921)

* add hover style to ensure consistent margin/padding for order summary

* decrease specificity of panel__button hover/active etc styles
…2925)

* fix typo in state property for idle status in checkout state reducer

* remove arg causing failure in phpunit tests on travis
@Aljullu Aljullu requested a review from a team as a code owner July 29, 2020 11:18
@Aljullu Aljullu requested review from senadir and removed request for a team July 29, 2020 11:18
@github-actions
Copy link
Contributor

github-actions bot commented Jul 29, 2020

Size Change: +189 B (0%)

Total Size: 1.64 MB

Filename Size Change
build/active-filters-frontend.js 8.49 kB +21 B (0%)
build/all-products-frontend.js 30.9 kB +18 B (0%)
build/all-products.js 31.2 kB -1 B
build/all-reviews-legacy.js 9.34 kB +1 B
build/all-reviews.js 9.67 kB -1 B
build/atomic-block-components/summary.js 924 B -1 B
build/attribute-filter-frontend.js 17.8 kB +23 B (0%)
build/attribute-filter.js 12.3 kB -1 B
build/cart-frontend.js 65.8 kB +23 B (0%)
build/checkout-frontend.js 82.4 kB +25 B (0%)
build/checkout.js 39.3 kB -3 B (0%)
build/editor-legacy-rtl.css 13.8 kB -6 B (0%)
build/editor-legacy.css 13.8 kB -7 B (0%)
build/editor-rtl.css 14 kB -3 B (0%)
build/editor.css 14 kB -4 B (0%)
build/handpicked-products-legacy.js 6.93 kB +2 B (0%)
build/price-filter-frontend.js 14.2 kB +21 B (0%)
build/price-filter.js 10.2 kB +1 B
build/product-best-sellers-legacy.js 7.01 kB +2 B (0%)
build/product-categories-legacy.js 3.23 kB +1 B
build/product-category-legacy.js 7.92 kB +2 B (0%)
build/product-new-legacy.js 7.17 kB +3 B (0%)
build/product-on-sale-legacy.js 7.55 kB +3 B (0%)
build/product-tag-legacy.js 6.1 kB +1 B
build/product-top-rated-legacy.js 7.14 kB +2 B (0%)
build/products-by-attribute-legacy.js 7.91 kB +2 B (0%)
build/reviews-by-category-legacy.js 11.3 kB -2 B (0%)
build/reviews-by-category.js 11.7 kB -3 B (0%)
build/reviews-by-product-legacy.js 12.8 kB +1 B
build/reviews-by-product.js 13.3 kB +2 B (0%)
build/reviews-frontend-legacy.js 8.22 kB +20 B (0%)
build/reviews-frontend.js 9.07 kB +17 B (0%)
build/single-product-frontend.js 33.7 kB +20 B (0%)
build/single-product.js 10 kB -1 B
build/vendors-legacy.js 367 kB +7 B (0%)
build/vendors.js 416 kB +4 B (0%)
ℹ️ View Unchanged
Filename Size Change
build/active-filters.js 8.77 kB 0 B
build/atomic-block-components/add-to-cart-frontend.js 4.6 kB 0 B
build/atomic-block-components/add-to-cart.js 3.17 kB 0 B
build/atomic-block-components/add-to-cart~atomic-block-components/button.js 3.12 kB 0 B
build/atomic-block-components/add-to-cart~atomic-block-components/image~atomic-block-components/title.js 334 B 0 B
build/atomic-block-components/button-frontend.js 1.99 kB 0 B
build/atomic-block-components/button.js 837 B 0 B
build/atomic-block-components/category-list-frontend.js 468 B 0 B
build/atomic-block-components/category-list.js 475 B 0 B
build/atomic-block-components/image-frontend.js 1.7 kB 0 B
build/atomic-block-components/image.js 1.15 kB 0 B
build/atomic-block-components/price-frontend.js 2.08 kB 0 B
build/atomic-block-components/price.js 2.11 kB 0 B
build/atomic-block-components/rating-frontend.js 524 B 0 B
build/atomic-block-components/rating.js 527 B 0 B
build/atomic-block-components/sale-badge-frontend.js 862 B 0 B
build/atomic-block-components/sale-badge.js 865 B 0 B
build/atomic-block-components/sku-frontend.js 388 B 0 B
build/atomic-block-components/sku.js 393 B 0 B
build/atomic-block-components/stock-indicator-frontend.js 568 B 0 B
build/atomic-block-components/stock-indicator.js 571 B 0 B
build/atomic-block-components/summary-frontend.js 918 B 0 B
build/atomic-block-components/tag-list-frontend.js 464 B 0 B
build/atomic-block-components/tag-list.js 472 B 0 B
build/atomic-block-components/title-frontend.js 1.21 kB 0 B
build/atomic-block-components/title.js 1.05 kB 0 B
build/blocks-legacy.js 3.54 kB 0 B
build/blocks.js 3.54 kB 0 B
build/cart.js 34.4 kB 0 B
build/featured-category-legacy.js 7.28 kB 0 B
build/featured-category.js 7.65 kB 0 B
build/featured-product-legacy.js 9.53 kB 0 B
build/featured-product.js 9.9 kB 0 B
build/handpicked-products.js 7.29 kB 0 B
build/product-best-sellers.js 7.37 kB 0 B
build/product-categories.js 3.23 kB 0 B
build/product-category.js 8.3 kB 0 B
build/product-new.js 7.53 kB 0 B
build/product-on-sale.js 7.91 kB 0 B
build/product-search-legacy.js 3.15 kB 0 B
build/product-search.js 3.48 kB 0 B
build/product-tag.js 6.45 kB 0 B
build/product-top-rated.js 7.5 kB 0 B
build/products-by-attribute.js 8.24 kB 0 B
build/style-legacy-rtl.css 16.5 kB 0 B
build/style-legacy.css 16.5 kB 0 B
build/style-rtl.css 17.2 kB 0 B
build/style.css 17.1 kB 0 B
build/vendors-style-legacy-rtl.css 1.03 kB 0 B
build/vendors-style-legacy.css 1.03 kB 0 B
build/vendors-style-rtl.css 1.03 kB 0 B
build/vendors-style.css 1.03 kB 0 B
build/vendors~atomic-block-components/price-frontend.js 5.65 kB 0 B
build/wc-blocks-data.js 7.09 kB 0 B
build/wc-blocks-middleware.js 931 B 0 B
build/wc-blocks-registry.js 2.28 kB 0 B
build/wc-payment-method-bacs.js 790 B 0 B
build/wc-payment-method-cheque.js 796 B 0 B
build/wc-payment-method-cod.js 875 B 0 B
build/wc-payment-method-paypal.js 831 B 0 B
build/wc-payment-method-stripe.js 11.9 kB 0 B
build/wc-settings.js 2.14 kB 0 B
build/wc-shared-context.js 1.53 kB 0 B
build/wc-shared-hocs.js 1.66 kB 0 B

compressed-size-action

nerrad and others added 4 commits July 29, 2020 07:39
@nerrad
Copy link
Contributor

nerrad commented Jul 29, 2020

Testing Notes

Overall, things tested really well.

Style Regressions

Note I'm testing on the following:

  • Google Chrome
  • WordPress 5.4
  • Storefront 2.5.8

The only thing in the below notes that is a regression from 2.7.1 is the interstitial edit view for the Reviews by Product and Reviews by Category block. That should probably be fixed before releasing this branch.

HandPicker Products block

This is not a regression from 2.7.1 so not a blocker.

In the interstitial where products are picked, the chips are broken (note this also applies to Products by Category, Products by Tag, Products by Attribute, and Reviews by Category blocks):

Image 2020-07-29 at 8 02 34 AM

Reviews by Product

This is a regression from 2.7.1, in 2.7.1 it looks like this:

Image 2020-07-29 at 8 43 33 AM

In this branch I see the below screenshot. Is this expected for the interstitial product selection view (note the horizontal grey line and the narrow off center radio selection container)?

The same similar layout exists for the Reviews by Category block too.

Image 2020-07-29 at 8 17 48 AM

Note, the same issue appears in WP 5.5 RC1

Image 2020-07-29 at 8 50 28 AM

Product Search

Note: this is not a regression from 2.7.1

The appearance of the search field varies between the editor and frontend:

Editor:
Image 2020-07-29 at 8 27 18 AM

Frontend:
Image 2020-07-29 at 8 27 24 AM

@Aljullu
Copy link
Contributor Author

Aljullu commented Jul 29, 2020

Thanks for testing @nerrad!

HandPicker Products block

This seems to be #2407, right?

Reviews by Product

Good catch! That's because the reviews blocks use a different folder structure and the editor.scss file was not being included. It's fixed in #2941.

Product Search

We might need to create an issue for this one (I can take care of it after the release). Part of the differences might be due to #2487, but probably there is something else causing style discrepancies.

@github-actions
Copy link
Contributor

Remove Suspense compatibility fix once WP 5.2 is no longe...

Remove Suspense compatibility fix once WP 5.2 is no longer supported. If Suspense is not available (WP 5.2), use a noop component instead.


https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/a2e15e20fc023fbd9716cfda2467f89ce8a5eb30/assets/js/base/utils/render-frontend.js#L25-L34

🚀 This comment was generated by the automations bot based on a todo comment in a2e15e2 in #2938. cc @Aljullu

Copy link
Contributor

@nerrad nerrad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @Aljullu . I can confirm the style regression for the review blocks is fixed.

@Aljullu Aljullu merged commit bc653b6 into main Jul 29, 2020
@Aljullu Aljullu deleted the release/3.1 branch July 29, 2020 16:01
@Aljullu
Copy link
Contributor Author

Aljullu commented Jul 30, 2020

Merge PR in Core created: woocommerce/woocommerce#27177.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants